import 'javax.naming.InitialContext'
import 'ias.ws.HelloSessionBeanService'

class WelcomeController < ApplicationController

  HELLO_EJB = InitialContext.new.lookup 'HelloEJB'
  HELLO_WS = HelloSessionBeanService.new.getHelloSessionBeanPort

  def create
    @answer_from_ejb = HELLO_EJB.sayHello params[:name] 
    @answer_from_ws = HELLO_WS.sayHello params[:name]
  end
end